export default {
    "名称": "北冥巨鳞",
    "类型": "法宝",
    "属性加成": function (fight_data, fight_unit, fb) {
        let team_data = _TeamDataCache.get(fight_unit["队伍"]);
        if (team_data && team_data["成员"].length === 5 && G.FightUnitUtils.remove_unit_fabao_lingqi(fight_data, fb, 1)) {
            let tstj = false;
            let sh = 0;
            let fs = 0;
            let kf = 0;
            let fy = 0;
            let ff = 0;
            let tj = "";
            sh = Math.floor(fb["境界"] * 1.7);
            tj = "伤害";
            let team_index = fight_unit["队伍下标"];
            for (let index = 0; index < fight_data["队伍数据"][team_index].length; index++) {
                const unit = fight_data["队伍数据"][team_index][index];
                // 为队友加成
                if (unit["类型"] === "角色" && unit["编号"] !== fight_unit["编号"]) {
                    unit["伤害"] += sh;
                    unit["防御"] += fy;
                    unit["抵抗封印等级"] += kf;
                    unit["法伤"] += fs;
                    unit["法防"] += ff;
                    // 特殊法宝条件判断
                    if ((tj === "伤害" || tj === "法伤") && fight_unit[tj] > (unit[tj] + 600)) {
                        tstj = true;
                        } else if (fight_unit[tj] > (unit[tj] * 1.3)) {
                        tstj = true;
                    }
                }
            }
            // 符合特殊条件 装备的单位获得更多属性加成
            if (tstj) {
                fight_unit["伤害"] += sh + 70;
                fight_unit["防御"] += fy + 40;
                fight_unit["抵抗封印等级"] += kf + 50;
                fight_unit["法伤"] += fs + 45;
                fight_unit["法防"] += ff + 40;
            }
        }
    }
};